package cn.wolfcode.wms.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Getter@Setter
public class OrderChartQueryObject extends QueryObject{

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginDate;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endDate;

    private String keyword;
    private Long supplierId = -1L;
    private Long brandId = -1L;
    private String groupType = "e.name";

    public String getKeyword(){
        return empty2Null(keyword);
    }
}
